import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

import au.com.bytecode.opencsv.CSVReader;


public class GetTweets {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {

		BufferedReader reader = new BufferedReader(new FileReader("F:/tweets.csv"));
		BufferedWriter writer = new BufferedWriter(new FileWriter("parsed.txt"));
		
		try{
		String row = reader.readLine();
		while(row != null) {
			String[] line = row.split("\";\""); //row[0] contains the entire string from the line
		    writer.write(line[2]); //get third value from line which are the tweets
		    writer.write("Hello");
		    writer.newLine();
		    row = reader.readLine();
		}
		writer.close();
		reader.close();
		
		}catch(Exception e){
			reader.close(); 
			writer.close();
		}

	}

}
